package top.forgirl.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@ApiModel("登录数据传输对象DO")
public class LoginDo {

    @ApiModelProperty(value = "凭证",example = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9" +
            ".eyJpc3MiOiJ0b3AuZm9yZ2lybCIsImV4cCI6MTYxMDg1Mjk5MywiaWF0IjoxNjEwMjQ4MTkzfQ" +
            ".MXXFdZ4NBWQgICIfcEk51CqLbJVmXUdrmWkCWvOxPIw")
    private String token;
    @ApiModelProperty(value = "权限",example = "6b50f7b64315466ea7a801852565e03e")
    private String limit;
    @ApiModelProperty(value = "用户账号",example = "1779251931")
    private String principal;

    public LoginDo() {
    }

    public LoginDo(String token, String limit,String principal){
        this.limit = limit;
        this.token = token;
        this.principal = principal;
    }
}
